laravel route redirect

50

laravel route redirect -

Route::redirect('/here', '/there');
or
return redirect(route('register'));

laravel return redirect to named route -

return redirect()->route('login');

redirect to route laravel -

Route::post('/user/profile', function () {
    // Update the user's profile...

    return redirect('/dashboard')->with('status', 'Profile updated!');
});

laravel route redirect -

return redirect()->route('route.name', [$param]);

Comments

Submit
0 Comments